package Chapter04.Homework;

public class Test06 {
    public static void main(String[] args) {
        for (int i=2;;i++){
            boolean bool=true;
            int sum=0;
            for (int j=2;j<i;j++){
                if(i%j==0){
                    bool=false;
                    break;
                }
                sum++;
            }
            if(bool){
                if(i>10000&&sum<10095){
                    System.out.println(i);
                }
            }
        }
    }
}
